package com.qijian.flowable.service.impl;

import java.util.List;
                                                                                import com.qijian.common.utils.DateUtils;
            import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
    import com.qijian.flowable.mapper.FlowableRecordPowerMapper;
import com.qijian.flowable.domain.FlowableRecordPower;
import com.qijian.flowable.service.IFlowableRecordPowerService;

/**
 * 流程记录查看权限Service业务层处理
 *
 * @author qijian
 * @date 2021-09-17
 */
@Service
@RequiredArgsConstructor
public class FlowableRecordPowerServiceImpl extends ServiceImpl<FlowableRecordPowerMapper, FlowableRecordPower>
        implements IFlowableRecordPowerService {

    private final FlowableRecordPowerMapper flowableRecordPowerMapper;

    @Override
    public int updateFlowStatus(String pId, String status) {
        flowableRecordPowerMapper.updateFlowRecordStatus(pId);
        return flowableRecordPowerMapper.updateFlowStatus(pId, status);
    }
}
